package org.minos.edit.view
{
	import org.minos.edit.EditFacate;
	import org.minos.edit.view.components.Menu;
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.mediator.Mediator;
	
	/**
	 * ...
	 * @author Minos
	 */
	public class MenuMediator extends Mediator
	{
		public static const NAME : String = "MenuMediator";
		
		public function MenuMediator( v : Menu )
		{
			super( NAME , v );
		}
		
		public function get menu() : Menu
		{
			return viewComponent as Menu;
		}
		
		override public function onRegister() : void
		{
			super.onRegister();
		}
		
		override public function onRemove() : void
		{
			super.onRemove();
		}
		
		override public function listNotificationInterests() : Array
		{
			//return super.listNotificationInterests();
			return [ EditFacate.SCENE_SELECTION_CHANGED ];
		}
		
		override public function handleNotification( notification : INotification ) : void
		{
			super.handleNotification( notification );
			switch ( notification.getName() )
			{
				case EditFacate.SCENE_SELECTION_CHANGED: 
					
					break;
			}
		}
	
	}

}